package org.dochandler.test.dao.dummy;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.dochandler.dao.MissionRequestDAO;
import org.dochandler.service.domain.mission.MissionRequest;

@SuppressWarnings("serial")
public class DummyMissionRequestDAO implements MissionRequestDAO, Serializable {
	
	@Override
	public MissionRequest findById(Long entityId) {
		MissionRequest missionRequest = new MissionRequest();
		missionRequest.setRequestDescrition("Dummy Request");
		return missionRequest;
	}

	@Override
	public List<MissionRequest> findAll() {
		List<MissionRequest> requests = new ArrayList<MissionRequest>();
		return requests;
	}

	@Override
	public boolean create(MissionRequest entity) {
		return (createMission(entity) == 1);
	}

	@Override
	public boolean delete(Long entityId) {
		return false;
	}

	@Override
	public boolean update(MissionRequest entity) {
		return false;
	}

	@Override
	public Long createMission(MissionRequest request) {
		return 1l;
	}
}